//
//@File    :	practice_2.5.cpp
//@Time    :	2021/08/18 20:34:47
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	摄氏度和华氏度转换
//

#include <iostream>

using namespace std;
double c_to_f(double c);
int main()
{
    double temperature;
    cout<<"Please enter a Celsius value: ";
    cin>>temperature;
    cout<<temperature<<" degrees Celsius is "
        <<c_to_f(temperature)<<" degrees Fahrenheit.\n";
    system("pause");
    return 0;
}
double c_to_f(double c)
{
    return 1.8*c+32.0;
}